package it.tic.sbibm.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import it.tic.sbibm.persistence.config.Constants;

public class DateUtils {

	public static final String getFormattedTime(Date date) {
		SimpleDateFormat sdf = new SimpleDateFormat(Constants.STANDARD_TIME_FORMAT);
		return sdf.format(date);
	}

	public static final String getFormattedDate(Date date) {
		SimpleDateFormat sdf = new SimpleDateFormat(Constants.STANDARD_DATE_FORMAT);
		return sdf.format(date);
	}

	public static final String getFormattedDateTime(Date date) {
		SimpleDateFormat sdf = new SimpleDateFormat(Constants.STANDARD_DATE_TIME_FORMAT);
		return sdf.format(date);
	}
}
